home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-07-03 | 1.9 KB | 101 lines | [GPPS/LIST] |
- % button text
- % Gregory Kruckewitt
- % 3-March-87
-
- /outsidecircletext
- {circtextdict begin
- /radius exch def
- /centerangle exch def
- /ptsize exch def
- /str exch def
- /xradius radius ptsize 4 div add def
-
- gsave
- centerangle str findhalfangle add rotate
-
- str
- {/charcode exch def
- ( ) dup 0 charcode put outsideplacechar
- }forall
- grestore
- end
- }def
-
- /insidecircletext
- {circtextdict begin
- /radius exch def /centerangle exch def
- /ptsize exch def /str exch def
-
- /xradius radius ptsize 3 div sub def
- gsave
- centerangle str findhalfangle sub rotate
- str
- {/charcode exch def
- ( ) dup 0 charcode put insideplacechar
- }forall
- grestore
- end
- }def
-
- /circtextdict 16 dict def
- circtextdict begin
- /findhalfangle
- {stringwidth pop 2 div
- 2 xradius mul pi mul div 360 mul
- }def
-
-
- /outsideplacechar
- {/char exch def
- /halfangle char findhalfangle def
- gsave
- halfangle neg rotate
- radius 0 translate
- -90 rotate
- char stringwidth pop 2 div neg 0 moveto
- char show
- grestore
- halfangle 2 mul neg rotate
- }def
-
- /insideplacechar
- {/char exch def
- /halfangle char findhalfangle def
- gsave
- halfangle rotate
- radius 0 translate
- 90 rotate
- char stringwidth pop 2 div neg 0 moveto
- char show
- grestore
- halfangle 2 mul rotate
- }def
-
- /pi 3.1415923 def
- end
-
- /Badge
- {
- /Times-Bold findfont 20 scalefont setfont
-
- topline % top of circle text var from turbo
-
- 22 90 65 outsidecircletext
- /Times-Roman findfont 15 scalefont setfont
-
- bottomline % bottom of circle text var from turbo
-
- 15 270 70 insidecircletext
-
- } def
- /cutline
- {newpath .5 setgray 0 0 98 0 360 arc stroke 0 setgray } def % draw circle?
-
- % Place the badge 4 times on page
- gsave 157 600 translate cutline Badge grestore % upper left
- gsave 449 600 translate cutline Badge grestore % upper right
- gsave 157 266 translate cutline Badge grestore % lower left
- gsave 449 266 translate cutline Badge grestore % lower right
- % /#copies 1 def % number of pages
- showpage
-